import http from '@/service'

export function getUserList(params: any) {
	return http.get({
		url: '/system/user/list',
		params
	})
}
export function selectRoles() {
	return http.get({
		url: '/system/role/all'
	})
}
export function insertUser(data: any) {
	return http.post({
		url: '/system/user/insert',
		data
	})
}
export function updateUser(data: any) {
	return http.post({
		url: '/system/user/update',
		data
	})
}
export function deleteUser(id: number) {
	return http.delete({
		url: '/system/user/delete/' + id
	})
}
